#ifndef MUTEX_H
#define MUTEX_H

#include <pthread.h>

namespace lzpLib{

/**
 * simple mutex
 */
class Mutex{
public:
    Mutex();
    ~Mutex();

    void lock();
    bool trylock();
    void unlock();
private:
    Mutex(Mutex const&);
    Mutex const& operator=(Mutex const&);
    pthread_mutex_t lock_;
};
}

#endif // MUTEX_H
